<?php

use yii\helpers\Html;
use common\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Teacher */

$this->title = $model->gR->name;
$this->params['breadcrumbs'][] = ['label' => 'Teachers', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="teacher-view">

    <div class="panel">
		<div class="panel-heading">
            <?= Html::encode($this->title) ?>
		</div>
        <div class="panel-body">
            <?= DetailView::widget([
                'model' => $model,
                'fieldRows' => [
                    [
                        '姓名' => $model->gR->name,
                        '性别' => $model->gR->sex,
                        '身份证号'=> $model->gR->id_number, 
                    ],[                   
                        '所在学校' => $model->xX->ZWMC,
                        '部门/院系' => $model->BMID?$model->bM->BMMC:'',
                        '专业' => $model->ZYID?$model->zY->ZYMC:'',
                    ],[
                        '岗位' => $model->GWMC,
                        '职务' => $model->ZW,
                        '职称' => $model->ZC,
                    ],[
                        '工号' => $model->GH,
                        '入职时间' => $model->RZSJ,
                        '离职时间' => $model->LRSJ,
                    ],[
                        '状态' => $model->ZT,
                        '备注:3' => $model->BZ,
                    ]
                ],
            ]) ?>
        </div>
    </div>

</div>
